<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<style>
    .form-group .form-control{
        height:38px !important
    }
</style>
<div id="searchDiv" class="ibox " style="display: none;">
    <div class="ibox-title collapse-link" style="cursor: pointer;" title="展开/收起查询条件">
        <h5>查询条件</h5>
        <div class="ibox-tools"></div>
    </div>
    <form action="web/purchasingAudit/getSubPageList" method="get">
        <div class="ibox-content m-b-sm border-bottom">
            <div class="row">
                <div class="col-sm-4">
                    <div class="form-group">
                        <label class="control-label" for="code">编号</label>
                        <input type="text" id="code" name="code" value="${param.code}" class="form-control">
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="form-group">
                        <label class="control-label" for="title">标题</label>
                        <input type="text" id="title" name="title" value="${param.title}" class="form-control">
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="form-group">
                        <label class="control-label" for="type">采购类型</label>
                        <select class="form-control" name="type" id="type">
                            <option value="" selected="selected">请选择采购类型</option>
                            <c:forEach items="${requestScope.typeMap}" var="typeMap">
                                <c:if test="${param.type == typeMap.key}">
                                    <option value="${typeMap.key}" selected>${typeMap.value}</option>
                                </c:if>
                                <c:if test="${param.type != typeMap.key}">
                                    <option value="${typeMap.key}">${typeMap.value}</option>
                                </c:if>
                            </c:forEach>
                        </select>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-4">
                    <div class="form-group">
                        <label class="control-label" for="companyCode">公司代码</label>
                        <input type="text" id="companyCode" name="companyCode" value="${param.companyCode}" class="form-control">
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="form-group">
                        <label class="control-label" for="departmentName">部门名称</label>
                        <input type="text" id="departmentName" name="departmentName" value="${param.departmentName}" class="form-control">
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="form-group">
                        <label class="control-label" for="status">状态</label>
                        <select class="form-control" name="status" id="status">
                            <option value="" selected="selected">请选择状态</option>
                            <c:forEach items="${requestScope.statusMap}" var="statusMap">
                                <c:if test="${param.status == statusMap.key}">
                                    <option value="${statusMap.key}" selected>${statusMap.value}</option>
                                </c:if>
                                <c:if test="${param.status != statusMap.key}">
                                    <option value="${statusMap.key}">${statusMap.value}</option>
                                </c:if>
                            </c:forEach>
                        </select>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-12 text-right">
                    <div class="form-group">
                        <button type="button" class="btn btn-w-m btn-primary" onclick="gotoPage()">查询</button>
                    </div>
                </div>
            </div>
        </div>
        <input type="hidden" name="page" value="1">
    </form>
</div>